<?php 
/* SVN FILE: $Id$ */
/* MenuItem Test cases generated on: 2011-03-01 16:03:25 : 1298975605*/
App::import('Model', 'MenuItem');

class MenuItemTestCase extends CakeTestCase {
	var $MenuItem = null;
	var $fixtures = array('app.menu_item');

	function startTest() {
		$this->MenuItem =& ClassRegistry::init('MenuItem');
	}

	function testMenuItemInstance() {
		$this->assertTrue(is_a($this->MenuItem, 'MenuItem'));
	}

	function testMenuItemFind() {
		$this->MenuItem->recursive = -1;
		$results = $this->MenuItem->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MenuItem' => array(
			'id'  => 1,
			'menu_id'  => 1,
			'label'  => 'Lorem ipsum dolor sit amet',
			'url'  => 'Lorem ipsum dolor sit amet',
			'order'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>